﻿using BCEntity.Common.EvaluationTag;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BCData.Common.EvaluationTag
{
    /// <summary>
    /// 评价标签
    /// </summary>
    public interface IEvaluationTagData
    {
        /// <summary>
        /// 检查评价标签是否存在
        /// </summary>
        /// <param name="evaluationTagId">评价标签Id</param>
        /// <returns></returns>
        Task<long> CheckExists(long evaluationTagId);
        /// <summary>
        /// 检查评价标签是否存在
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="tagContent">评价内容</param>
        /// <returns></returns>
        Task<long> CheckExists(long userId, string tagContent);
        /// <summary>
        /// 检查评价标签是否存在
        /// </summary>
        /// <param name="vehicleId">车辆Id</param>
        /// <param name="tagContent">评价内容</param>
        /// <returns></returns>
        Task<long> CheckExists(string tagContent, long vehicleId);
        /// <summary>
        /// 创建评价标签
        /// </summary>
        /// <param name="evaluationTagEntity">评价标签</param>
        /// <returns></returns>
        Task<EvaluationTagEntity> Create(EvaluationTagEntity evaluationTagEntity);

        /// <summary>
        /// 修改常用次数
        /// </summary>
        /// <param name="evaluationTagId">评价标签Id</param>
        /// <returns></returns>
        Task<EvaluationTagEntity> UpdateUseCount(long evaluationTagId);
        /// <summary>
        /// 获取常用评价标签
        /// </summary>
        /// <param name="userId">用户Id</param>
        /// <param name="driverId">司机Id</param>
        /// <returns></returns>
        Task<IEnumerable<EvaluationTagEntity>> GetInComeUseEntities(long? userId, long? driverId);
    }
}
